import request from '@/utils/request'

export function getList(params) {
  return request({
    url: '/manager/adMaterial/list',
    method: 'post',
    data:params
  })
}

export function toggleId(params) {
  return request({
    url: '/manager/adMaterial/operate',
    method: 'post',
    data:params
  })
}

export function getId(id) {
  return request({
    url: '/manager/adMaterial/detail',
    method: 'post',
    data:id
  })
}

export function update(params) {
  return request({
    url: '/manager/adMaterial/modify',
    method: 'post',
    data:params
  })
}

export function add(params) {
  return request({
    url: '/manager/adMaterial/create',
    method: 'post',
    data:params
  })
}

